package com.open.capacity.user.dao;

import com.open.capacity.user.model.SysFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 附件
 *
 * @author
 * @email
 * @date 2020-06-24 22:33:42
 */
@Mapper
public interface SysFileDao {

    int save(SysFile file);

    int updateStatus(@Param("id") String id, @Param("status") Integer status);

    int delete(String id);

    int deleteByFolderId(String folderId);

    List<SysFile> findByFolderId(String folderId);

    SysFile findById(String id);

}
